import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/login.vue'
import conservator from '../views/conservator.vue'
import quiz from '../views/quiz.vue'
import toresult from '../views/toresult.vue'
import visualization_geren from '../views/visualization_geren.vue'
import visualization_class from '../views/visualization_class.vue'
import visualization from '../views/visualization.vue'
import testResult from "@/views/testResult";



const routes = [
  {
    path:'/visualization',
    name:'visualization',
    component:visualization,
    meta:{
      isShow:false,
    }
  },

  {
    path:'/showTestResult',
    name:'showTestResult',
    component: testResult,
    meta: {
      isShow: false,
    }
  },
  {
    path:'/toresult',
    name:'toresult',
    component:toresult,
    meta:{
      isShow:false,
    }
  },

  {
    path:'/quiz',
    name:'quiz',
    component:quiz,
    meta:{
      isShow:false,
    }
  },

  {
    path:'/conservator',
    name:'conservator',
    component:conservator,
    meta:{
      isShow:false,
    }
  },

  {
    path: '/Home',
    name: 'Home',
    component: Home,
    meta:{
      isShow:false,
    },

    children:[

      {
        path:'/visualization_class',
        name:'visualization_class',
        meta:{
          isShow:true,
          title: '班级信息可视化'
        },
        component: () => import('../views/visualization_class.vue'),
      },

      {
        path:'/visualization_geren',
        name:'visualization_geren',
        meta:{
          isShow:true,
          title:'个人信息可视化'
        },
        component: () => import('../views/visualization_geren.vue')
      },

    ]
  },



{
  path:'/',
  name:'Login',
  component:Login,
  meta:{
    isShow:false,
  }
},
/*

*/



]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
